package main

import (
	"github.com/hprose/hprose-go/hprose"
	"os"
)
type Tux struct {
	Name string
	Value string
	Struct struct {
		Field1 int
		Field2 int
		Field3 string
	}
	Map map[string]interface{}
}
type Cluster int
func (c *Cluster) hello(name string) string {
	return "Hello " + name + "!"
}
func (c *Cluster) Hello1(req Tux) (*Tux,error){
	
}

func main() {
	server := hprose.NewTcpServer("tcp4://0.0.0.0:4321/")
	server.AddFunction("hello", hello)
	server.AddAllMethods(obj, ...)
	server.Start()
	b := make([]byte, 1)
	os.Stdin.Read(b)
	server.Stop()
}
